import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  /* {
    path: '/',
    name: 'home',
    component: () => import('@/views/MyHome.vue'),
    children: [
      {
        path: '/',
        name: 'home',
        component: () => import('@/views/Home/HomeIndex.vue'),
      },
      {
        path: '/user',
        name: 'user',
        component: () => import('@/views/UserManage/UserIndex.vue'),
      },
      {
        path: '/video',
        name: 'video',
        component: () => import('@/views/VideoManage/VideoIndex.vue'),
      },
      {
        path: '/page1',
        name: 'page1',
        component: () => import('@/views/Other/PageOne.vue'),
      },
      {
        path: '/page2',
        name: 'page2',
        component: () => import('@/views/Other/PageTwo.vue'),
      },
    ],
  }, */
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/LoginPage.vue'),
  },
]

const router = new VueRouter({
  routes,
})

export default router
